Format stack is broken in python2 if you pass parameter to delayed such that repr(param) contains non-ascii symbol

fix format_stack in python2 if parameter value repr of delayed function contains non-ascii symbol