ensure sane handles

All kinds of special characters that are not explicitly replaced as transliterations are currently allowed in handles, which sometimes leads to strange side effects. Proposing a saner approach here.