Wouldn't it be safer to duplicate *all* % signs? Including lonely ones?