Tests identity rather than exact output.
fixes #4190 Add leading zero to encoded character if it is less than 0x10