Adding a function `FourCharCodeToStringRef` would make things easier an avoid code duplication