You really should be using strcmp here -- and I'm not sure if this is also something you want to add to the URI library.

I would suggest you bring this up with Boost.string_ref maintainers.