Fix: Error when parsing JSON string produced from NSData instance

Fixes #428. 

Thanks to pointer from @alloy.