fixed stupid stupid bug that made term.write fail horribly when writing multiline strings in non-wrapping mode