Fix ownership and permissions of webapp's context file, add URI encoding as parameter.