Cleaning up Map for basic HTML validation.

Simple things like removing duplicate IDs from form elements, character
encoding, etc.