encoding repository.js to UTF-8