Mode 1823 - Fixed encoding in REST and WebDAV services

Fixed a couple of issues around encoding:
- the REST service will always write out the response using UTF-8 and send the appropriate response header
- the WebDAV servlet will always encode node paths using UTF-8 and when rendering the contents of folders will use full links instead of partial ones.

Should be merged in 3.1.x and cherry-picked in master.