Fix Object ... has no method 'substr' error

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.