Fix a bug,cause by a file content encode type change(#bug8).