Make the Pygments<->Qt glue faster and also fix handling of EOL
Dont crash if pygments raises an exception
oops