this is not an universal solution
only works if you point to an unused character standing around
but maybe this:
game.player.set_controller{type=defines.controllers.character, character=game.player.surface.create_entity{name="character", position=game.player.position, force=game.player.force}}