First pass at replacing HTML entities