fdo#74512: Add test for this.

Change-Id: I472a91375c6408761d9c300b3575cfe101649fca
fdo#74512: Generate escaped sheet names after the grammer is set.

Otherwise the single quote characters wouldn't be properly doubled.

Change-Id: I864ca8912a35049905e52e002d92d648e1278015