Mendeley, bibtex and the web page citation fiasco

Here is a work-around for the insufficiently-functioning Mendeley bibtex export for web page/URL citations. The issue is that a) the URL is exported as ‘url =’ and not ‘howpublished =’ and b) there is no ‘last accessed’ (aka ‘last viewed’ or ‘last checked’) field… This little workflow and command line might help someone.