Fix parsing performance for unquoted filenames

Special thanks to Paul Rogers & Eric Wong