Modified parse_command to unquote URL properly. #6368

Added test.
This should be abort(404) not raise. logically if command cannot split then URL is wrong