fixed issue with non-ascii characters not working with python 'format'