Fix migration issue on python 3

Django calls ``related_name % {...}`` in RelatedField.contribute_to_class which does not work on Python 3 as it does not support string formatting on byte-strings.