Improve handling of format strings in custom arguments.