Encoding issue in restore code

Details here