We shouldn't need to cast the encoding to a string; we can just compare it against the constant with `Encoding::ASCII_8BIT`