prevent double encoding