Fixed bug 2899

apparently, there was a bug with writing char [] arrays (formed with sprintf) to FileStorage.