Implemented a much, much better HTML entity decoding method. Fixes #175