Add ParserBeforeStrip hook and abstract text-to-object conversion