convert map tileset to sane form