The hash in a URL is the anchor separator, so what VLC does here is very much intended. If you need a hash in a file name in a M3U, you should encode it as %23 so that there are no ambiguities.
Br,
-- Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.