Spotting

So I had unprotected sex on Friday, Saturday, and Sunday. I'm not due for my next period until the 27th. This morning I woke up and I was spotting but it was dark, like brown. And it had a funky smell. Any ideas what this could be?