Fix valgrind warnings

Fix warning "Invalid read of size X" by returning a string instead of a pointer in the function ServerPlayer::toString()