Fix undefined behaviour in strnatcmp