Makes the quoting and quote masking behaviour conform to RFC-4180 and updates test.html accordingly.