Wrong reference in WebDriverExpectedCondition, possible encode error

Currently there is a reference to a non-existent property 'isSelected' in WebDriverExpectedCondition.elementSelectionStateToBe; it should refer to the corresponding method.

Another problem I faced is with the encode method in WebDriverKeys: afaik it should return an array of chars, but the current implementation seems to return an array of strings.