adding encoder/decoder for UTF-8