Fix #19: lone surrogates should not be replaced by U+FFFD.

Fixes #19. See that bug for all the discussion thereof.