Patch to fix an int to str parse error and an encoding fatal error
Issue 1: When a repoid was set in the hg config file the extension was casting the value to int that was causing a python type error when it was added to the string http request.
Issue 2: In some circumstances we where getting encoding errors when the HTTP request was being formed. So I added the line to ignore any offending non ASCII chars in the creation of the form data.
Please see the attached patch.