Fixed function call on buffer.toString().