be consistent in using NSStringFromSelector

instead of hardcoding a raw string name in encode, and using the selector in decode.