Fix UnicodeEncodeErrors when viewing the user infobox for users with unicode names

Review Request #2813 — Created Jan. 21, 2012 and submitted — Latest diff uploaded

Information

Review Board
release-1.6.x

Reviewers

Fix UnicodeEncodeErrors when viewing the user infobox for users with unicode names

When a user had unicode in their full name or email address, the infobox view
would crash with a UnicodeEncodeError, because etags can only contain ascii.
This fixes it to explicitly encode everything to ascii, replacing characters if
needed.
Ran newly-added test before and after the change.