bashrc: fixed return value from get_encode()