Usernames in the database are HTML-encoded but when you search for a particular user is doesn't encode it before doing the DB lookup to get the user id.
Fixed, will be in 2.0.22-gentoo-p1.