automatic UTF-8 decoding/encoding