Add Task::read_c_str() helper, and remove old one.

This is part of the ancillary plan with #801 and #802, to modernize {ipc,sys}{c,h}, but doesn't technically fit with either one.