Unicode update

Updated method to accept files that contain Unicode characters.