See https://github.com/appium/appium/pull/1072 and https://github.com/SeleniumHQ/selenium/pull/108.