Cast input to string before spliting

Most of the other string filter does it, like strip, upcase, downcase etc.

I don't think it would bring any backward compatibility issues either.

I noticed that via reddit: http://www.reddit.com/r/shopify/comments/2coacm/can_anyone_fix_this_error_liquid_error_undefined/

/review @fw42 @arthurnn