Fixed error if using Json serializer - removing BOM