making resource content UTF-8 resistant