corrected encoding of strings