Fix potential minor bug in MongoDbEventStore

While reading through the code I noticed that the replacement of prefix was hard coupled to prefixes of one character even though that invariant is not guarenteed by a precondition check. If one ever wanted to change the prefix to be multi character the substring wouldn't be sufficient.