[fix bug 1039218] Remove spaces for IDs in edit profile page.

``name`` attribute change breaks form submission.