Encode the username coming in from OAuth as UTF-8 so that it can be URL quoted for API calls. Strings fed into the user importer and the unit tests were already UTF-8 encoded, which is why this was missed. Some user edit counts show incorrectly (usually None) https://phabricator.wikimedia.org/T186501
Encode the username coming in from OAuth as UTF-8 so that it can be URL quoted for API calls. Strings fed into the user importer and the unit tests were already UTF-8 encoded, which is why this was missed.
Some user edit counts show incorrectly (usually None)
https://phabricator.wikimedia.org/T186501

WikipediaLibrary/TWLight,WikipediaLibrary/TWLight,WikipediaLibrary/TWLight,WikipediaLibrary/TWLight,WikipediaLibrary/TWLight