Escape more characters in path (fix #367)