toUnicodeChar: Reduce duplicate code, make maintenance a bit easier.
toUnicodeChar: Reduce duplicate code, make maintenance a bit easier.

Grocel/wire,NezzKryptic/Wire,sammyt291/wire,dvdvideo1234/wire,garrysmodlua/wire,wiremod/wire