fixes the unicode for non unicode buffers.