actually return the category constants we compute, add a test
Merge pull request #7833 from jakebolewski/jcb/fixutf8proc

UTF8proc is not returning the actual category code