Issue 3895

This PR fixes the two issues described in #3895:
- decoding an attribute containing a colon (which is valid for, e.g. URI)
- decoding a base64 attribute that is followed by a multi line comment -> a flag was added to track the current status of the parser.

Tests have been written for the described issues. Fails before, passes after.

Regards.