Update PrettyExceptions.php

The str_replace function was not terminating lines in the trace because the newline was enclosed in single quotes and not double quotes.  I also formatted the returned HTML slightly and added DOCTYPE.