Handle empty strings
Merge pull request #1 from ably-forks/empty-string-support

Handle empty strings