It's not expensive. In a local benchmark I get about forty thousand operations per second for UTF-8, so 25µs. We do a lot of encoding and decoding in OTRS already, and encoding two 128-character strings more isn't particularly slow.