Fixed a weird encoding bug that I'm really suprised I didn't catch before and also surpised I hadn't fixed before...