fix message handling
lib/player.js: add toString function