Changed to use -with-logging bom and corrected strings enconding