fix utf8 decoding