Make sure empty strings are correctly deserialised

Fixes #91.