Dollar gains on upbeat data, Ukraine fears linger