Text this: Towards global solutions of optimal discrete-valued control problems