This ensures that the proper codec will always be used no matter what. It also avoids relying on ASCII conversions.