Fix string decoding