Dollar strengthens 0.4% as Middle East tensions fuel safe-haven demand