Add UNICODE_REPLACEMENT_CHARACTER as a #define for the Unicode REPLACEMENT CHARACTER code point (0x00FFFD), and use that instead of 0xfffd/0xFFFD/0x00FFFD in cases where that value refers to REPLACEMENT CHARACTER.