Per FS#2884, implement a local version of str_getcsv() to maintain
compatibility with php 5.2.x (str_getcsv() is only available in
php 5.3+ and is used by user manager import feature.