Added function to convert ascii to bytes