If the code receive the following value http://myurl.org/mypage#section in a reference type, it will be convert as value : http://myurl.org/mypage and type : section. # is not a good separator while talking about URL.
One of the side effet is that the CSV import of references with URL containing a sharp are not well imported.