Rangers beat Orioles, 8-5