Use single chars operation when possible
Summary: This is more correct and faster as pointed out by Krazy.
Reviewers: Zanshin, dfaure, bensi, franckarrecot
Differential Revision: https://phabricator.kde.org/D5834