real-encode