convert the encode of a bunch of files under the directory and the sub-directory