get ascii code of a character