added debug info for file encoding