pub fn check(what: &str, part: &str) -> Result<(), NameError>
Checks that one URI part is not empty and holds only allowed characters. what names the part in the error.
what