This was the case as well with a thread where the OP was named "David Something" (not really something but anyways) and when trying to tag the OP the tagged became another user that had the name "David".
I think it's more or less impossible to handle this in the @ functionality and I think it's better to not allow spaces in the names.