Use ascii codec consistently.