Improved handling of nonstandard nucleotides