fix persistence errors with unicode content