It's looking like the encoding is getting mixed up. You might want to look into the content meta tag and set the correct charset. Other than that there's probably sites that will help you to replace characters with html entities that are a lot safer to use in code.