node 10.x fixed from https://github.com/danwrong/restler/pull/113/files