Don't encode error strings twice