Fix "extract" function encoding and parsing