Implemented sanitization for "pretty filename" in order to check for invalid filename characters (such as slashes).