solve the *encoding* problem