Fixes encoding error in unicode arguments.