add double slash replace

https://gist.github.com/xionglun/6222506