Fixed media_new_path filepath argument to use URI Generic Syntax RFC 3986.