Safe CPS from Unsafe Controllers