In D365 Finance, when uploading HTML for an email template with special characters like this...

...the HTML is rendering with <?> in each place where these special characters exist:

What is strange is that this same HTML was used in AX2012 and upgraded fine (without the <?>'s). It is only when loading the same html into D365 does this issue happen.
Any tips? I did not find any known issues in LCS.