Output XML response no longer contains BOM. Cleaned up the code.