Modified parse_command to unquote URL properly. #6368

Added test.
Yes, discussed this with @sharoonthomas the other day. The URL gets quoted thrice when it should not, and by design we only need to unquote once. Fixing.