pass options to serializer and add tests for parse5's encodeHtmlEntities option