SERVER-7424 Use simpler regex to produce single line output in tojson()

When displaying small objects, convert only tabs, carriage returns and
newlines to single spaces, leaving other whitespace alone.