Add missing string cast for debug mode.