Maybe it doesn't save anything, but I think this might be more correct, since without ensuring the correct encoding, it was definitely giving me the wrong results.