Dollar gains as investors rush for safe havens due to virus worries