coerce input to string

This is arguably undesirable behaviour, but this is what browsers do,
and a polyfill should implement the missing feature as faithfully as
possible.
Merge pull request #16 from davidchambers/coerce

coerce input to string