Fix warnings
Fix C string handling