How to import/add translated strings having inline styles?
Yes your guess is correct,locale_string_is_safe  "Check that a string is safe to be added or imported as a translation." if you want to ignore your job you should patch it for a while , 
change it to 

function locale_string_is_safe($string) {
  return TRUE:
}


after your job  revert it.