Encode chat posts. Closes #206.