OFString+XMLUnescaping.m: Remove code duplication