Removed characters incorrectly handled when used on a file name