fix saved exports with unicode (+tests!)

fixes Case:56962