fixed unicode error arising from the use of str.formt()