Added note about internal error.
Encode cwd to make it URI safe