Handle out-of-range charrefs in HTML parsing.
Handle out-of-range charrefs in HTML parsing.

Fixes T585; Github issue #148.

jobscore/sync-engine,Eagles2F/sync-engine,gale320/sync-engine,wakermahmud/sync-engine,jobscore/sync-engine,wakermahmud/sync-engine,closeio/nylas,wakermahmud/sync-engine,nylas/sync-engine,closeio/nylas,nylas/sync-engine,gale320/sync-engine,closeio/nylas,ErinCall/sync-engine,jobscore/sync-engine,Eagles2F/sync-engine,jobscore/sync-engine,wakermahmud/sync-engine,gale320/sync-engine,wakermahmud/sync-engine,ErinCall/sync-engine,Eagles2F/sync-engine,nylas/sync-engine,nylas/sync-engine,Eagles2F/sync-engine,gale320/sync-engine,closeio/nylas,Eagles2F/sync-engine,gale320/sync-engine,ErinCall/sync-engine,ErinCall/sync-engine,ErinCall/sync-engine