Report the generated SQL for scan too.
Add functions for encoding an decoding HTML entities, especially support functions for encoding and decoding UTF-8 <-> numeric HTML entities.