Here's how I would do that with SeqKit
conda install seqkit
seqkit seq input.fastq.gz --upper-case -w 0 > output.fastq
We should also check in about this:
That's pretty unusual! How did that happen? Was there some preprocessing or masking applied to your fastq files before importing into Qiime2?