Update string retrieval to (hopefully) fix unicode issues