add one util class

add one util class to automatic get file encoding and tranform to
another encoding