Preventing unicode errors