Parse hex XML entities.

closes #1316