There's no need to do anything special with the data itself. All Redis strings are binary safe.
Your problem relates to redis-cli (which is a very nice redis client for getting to know Redis, but almost never what you want in production, because of usage and performance issues).
Your problem also relates to common (bash/sh/other) terminal escaping. Here's a nice explanation.
I suggest you use python for this, or any other language you are comfortable with.
Example:
import redis
cli=redis.Redis('localhost', 6379)
with open('data.txt','rb') as f:
for d in f:
t = d.partition('\t')
cli.set(t[0], t[2].rstrip())
#EOF