generators::legacy0::generate(): SQL encoding bug fix.