Fixes implicit/explicit encoding scripts to work with filenames containing spaces.