Fix byte length counting if strlen overloading used