fmt: Better printing of strings
Currently strings are printed using "
and escaped.
A more natural algorithm is this one:
Count the number of ' and " in the string, pick the one with lower count (if they are both equal, use "). Use that to print the string, and escape it inside accordingly.