Fix icon name encoding error when converting to ctypes