Allow @base URI to have a trailing hash '#'

This PR is to address RDFLib/rdflib#379 and allow the `@base` directive URI to have a trailing hash '#'.

- adds a test for both `@prefix` and `@base` to allow trailing hash
- comments out previous check for hash ported over from cwm