Fix Core::getPeerName for long names
Fix possible heap corruption in CUserId()

If the size of the userId is larger than TOX_CLIENT_ID_SIZE, then we used to memcpy more than we allocated