write multi-line strings in either literal or folded block style, depending on line length