Safari undefined str fix

On my application Handlebars throws an error only on Safari and the reason is that there is no control over the string passed to the <code>quotedString</code> method.