Added string overloads for writing files. Changed all tests to use the new overloads.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>