Fix unicode handling issue of utils.str.format on Python 2.