sh: Optimized readsl()/writesl() support.