convert CSS + JS metadirectives to bytestrings because fanstatic can't handle unicode objects