Hi,
I was about to get an ota from phone and I was in TWRP recovery and find out there's some kinda problems, one of them was in get_filesystem_config file where it just run ls -aRZ /system which will result in strange characters in file lists such as �[0 because of the color thingy ... so I removed the color by changing the ls code to ls -aRZ --color=never and it worked great!