Dollar rises as Japanese stocks rally