SERVER-14931 fixed current command shell command length to take into account multi-byte characters

Closes #765

Signed-off-by: Benety Goh <benety@mongodb.com>