Add CHAR function and change negative argument behavior