various fixes around rename and handle binary filename