Encode any str given to ascii.