Not the same thing, but would this help?
Otherwise, there is a PHP condition
if ( is_bricks_builder_main ) { we’re in the builder }
if ( !is_bricks_builder_main ) { We’re not in builder }
I’m afraid I’m not sure how you’d unhook the encoder with this… but maybe their support could suggest something.