Add {encode,decode}_{string,bytes} shorthands.