[fix] make router and server utf-8 safe

I might have missed a place where this pattern occurs, but I think I got the two main areas.

fixes #42