encoding: Implement decodeKeyLocator.