Fix encoding related errors that prevent the BrowserIDRegisterForm to properly render.

Also removed a |safe filter as the form field is already considered safe content.
Merge branch 'master' into register-encoding-fix
Merge pull request #2505 from jezdez/register-encoding-fix

Fix encoding related errors that prevent the BrowserIDRegisterForm to properly render.