Fix for render() being called with node.js buffer instead of string