FIX: Unicode string handling in HDF5 output

Fixes unicode string handling. Not ready for review until Travis is happy (I'll let you know).