Fixed strange issue with substitution strings in formats. (only works for APP_DATE_TIME_FORMAT)
Enhancements:
- now obeys default date format
- takes two new parameters to allow line break replacing (default is replace '<br />' with crlf)
- return value is now a record holding all relevant information to send file to browser.
reenable exception block