Fix unicode issue by using fail-safe HTML entities

See also #2 discussion.