encode in lowercase