PHP Functions for converting string to ASCII