Remove the folder illegal files were in if it is empty
Fix bug in detecting UCS-2-LE encoding

Found in @le717/LDR-Importer#37