Switching to subprocess to better handle unicode strings