changed error message for invalid characters in filename as per #501