handle encoding. maybe.