handle encoding
handle encoding