Please remove these ifdef's.  If something requires these it's IMO badly designed.  Either don't send these characters to begin with or come up with a better solution.