fixed traling EOF on SafeInputString