improve escape_path.

Signed-off-by: Jack <jack.wgm@gmail.com>