compiler: Optimise renderPair

Where possible write single characters to the output string rather than
single character strings. This is lower overhead as the string length
doesn't need to be calculated etc.