fix encoding to cp949

fix encoding
fix die expression to print log and return