removed redundant c-style string functions + fixed a threading problem in PlayerHandler.cpp