bugfix when handling non-unicode files, remove debug.