fix string cast error, remove print nil error in dump request/response

Signed-off-by: eggfly <lihaohua90@gmail.com>