Fix utf8/ascii discrepancies
Implement truncation per RFC 4226 Section 5.3