add -b flag for binary mode, RT#23382