make sure path follows RFC 6901