[bug] Two bugs which happen when a target url is supplied with '#' in it

Problem: Our output_files paths won't work since browsers donot send the stuff after '#'
Solution: Replace '#' when using in paths

Problem: Since tools like arachni fuzz using the base url, our transaction logger was unable to link the transaction to target
Solution: Try matching the hostnames as well for sorting (We already use hostnames for determining the scope)