Handle case of meaningful regex characters in sample names.