I think that most of the changes like this in this PR are not necessary.  In both Py2 and Py3 the value should be converted to a string because it is being used as a substitution value for a str literal.  Also it appears in at least this case that the values being converted are numbers and so there is no problem with encodings if Python decides it needs to coerce the type to a unicode value for some reason.