Handle "raw text" nodes properly when serializing to HTML