Encode questions