[DEV-160] Refactor afpr matcher and fix buggy allocation of utstrings internal char buffer.