Dollar firms as investors weigh risks