Refactor sendchar to be smaller, faster