SDL-based idToChar and charToId, formatting