fix string decoding