Updates to store correct encoding