always replace encoded keys