Added file encoding detector