Encode properly.