correct ~P control sequence handling in io:format inspection (#497)
cleanup