Fix delimiter handling in field parsing.

Extending the pdagent one. @chamblin