to support utf-8 file decoding