Library: Fixed formatstr handling