issue6291: fix the stack trace isn't URI encoded (related to 53feac7)