He got a nil probably because the response doesn't contain a unicode string, so he got nothing to sub!().