str objects must be treated the same as unicode in this case