`chars` should also be renamed to `bytes`.