Convert values to UTF-8 before passing to PyV8 methods, for compatibility with newer PyV8 versions