Properly handle agent parameters with white spaces.