genericize the handling of ascii -> opcodes