get ascii code for chars