All-round solution for correct quoting of tuids.