populate service code
add UTF-8 "BOM" where missing