Fixes #6052. Urldecoding usernames to allow non-alphanumeric characters.
Adds comment to explain URL decoding in get_user_by_username
Test that get_user_by_username accepts URL encoded input
Merge branch 'sembrestels-patch-2' into 1.8