Fix byte length counting if strlen overloading is used