Added function to cast &[u8] to &str

Renamed str::from_bytes to str::from_bytes_owned
Added str::from_bytes_slice
Added str::subslice_offset
Misc cleanup

Closes #5422