CRUNCh-147: Have writeTextFile force all inputs to be Strings and adjust tests for this