Fix double-encoding issue with decimalOnly

With the addition of decimalOnly encoding, I broke the ability to encode
certain special characters in the string. This change corrects that, so
the behavior between the named and decimal encodings is consistent.