Fix UTF-8 decoding of incomming data