Convert string contents to unicode, regardless of process type or python version