Adding unittest to reproduce #304
* Fixed #304: "coercing to Unicode: need string or buffer, Morsel found"
* Unittested