Move URI.parse logic to 'safely_parse_path' helper method
Move URI.parse logic to 'safely_parse_path' helper method

alphagov/collections-publisher,alphagov/collections-publisher,alphagov/collections-publisher