Add docs and safe-handling of URI components.