string $path:
string
private function encodePath($path) { return strtr($path, array( '/' => '~1', '~' => '~0', '%' => '%25', )); }