adjusting the parser and adding tests for formats with dots and pluses (...

...such as the ones in the test)

Following everything who I've read in the other pull request, adding the tests and adding an extra character (the plus sign), who allows to parse svg docs as well (image/svg+xml).