Cast input to parser to a string.

Casting input to a string to ensure that string methods are available.  In node this can cause issues when feeding data from fs.readFile directly into dust.