Changed to use boms and corrected strings enconding