Read encoding