update (fix mojibake)
add source_encoding and output_encoding