Disallow invalid mapping paths

Paths that don't pass a URI.parse to create a
URI::Generic are no longer let through