Fix invalid output of single-quoted scalars in cases when a single