Fix missing whitespace while encoding.