Force encoding to utf8 in inject into file action

If file includes utf-8 symbols (russian letters in my case) before injecting new text then exception with message 'Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8' raises.