Finally got off my butt and started using EUnit.
There was a bug that was resetting the extra amount of space needed when encoding unicode characters with the `uescape` option enabled.