Fixes #6052. Urldecoding usernames to allow non-alphanumeric characters.
detect pagination needs
Merge pull request #5971 from jdalsem/detect-pagination-needs

Eliminate unneeded pagination when no limit/offset
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