Text this: A non-standard optimal control problem arising in an economics application